﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FarmSmartSleep.Common.Domain
{
    /// <summary>
    /// 羊场表
    /// </summary>
    public class SheepFarm
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        public int FarmId { get; set; }
        /// <summary>
        /// 序号
        /// </summary>
        public int SerialId { get; set; }
        /// <summary>
        /// 羊场编号
        /// </summary>
        public string? SheepFarmNo { get; set; }
        /// <summary>
        /// 羊场全称
        /// </summary>
        public string? FarmName { get; set; }
        /// <summary>
        /// 建账日期
        /// </summary>
        public DateTime? BuildingDate { get; set; }
        /// <summary>
        /// 详细地址
        /// </summary>
        public string? FarmAddress { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int FarmState { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateDate { get; set; }
        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool IsDelete { get; set; }
        /// <summary>
        /// 负责人
        /// </summary>
        public int HeadID { get; set; }
        /// <summary>
        /// 管理部门
        /// </summary>
        public int DepartmentId { get; set; }
        /// <summary>
        /// 省id
        /// </summary>
        public int ProvinceId { get; set; }
        /// <summary>
        /// 市id 
        /// </summary>
        public int CityId { get; set; }
        /// <summary>
        /// 县id
        /// </summary>
        public int CountyId { get; set; }

        public string? SheepFarmNick { get; set; }//羊场简称
        public int Scale { get; set; }//羊场规模
    }
}
